package com.example.demotool.mapper;

import com.example.demotool.bean.UserBean;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;


import java.util.List;

/**
 * 启动类添加@Mapperscan
 * mapper目录下不用添加@Mapper
 */
public interface UserMapper {

    UserBean getInfo(@Param("userName") String name, @Param("passWord") String password);

    /**
     * 注解方式不需要再UserMapper.xml写sql
     * @return
     */
    @Select("select * from user")
    List<UserBean>  testLogin();
}
